<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta http-equiv="Pragma" content="no-cache">
  <meta http-equiv="Cache-control" content="no-cache">
  <meta http-equiv="Expires" content= "0" /> 
  <title>远程会诊系统</title>
  <!-- Tell the browser to be responsive to screen width -->
  <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
  <!-- Bootstrap 3.3.6 -->
  <link rel="stylesheet" th:href="@{/static/assets/bootstrap/css/bootstrap.min.css}"/>
  <!-- Font Awesome -->
  <link rel="stylesheet" th:href="@{/static/assets/adminlte/css/font-awesome.min.css}"/>
  <!-- Ionicons -->
  <link rel="stylesheet" th:href="@{/static/assets/adminlte/css/ionicons.min.css}"/>
  <!-- Theme style -->
  <link rel="stylesheet" th:href="@{/static/assets/adminlte/css/AdminLTE.min.css}"/>
  <!-- AdminLTE Skins. Choose a skin from the css/skins
       folder instead of downloading all of them to reduce the load. -->
  <link rel="stylesheet" th:href="@{/static/assets/adminlte/css/skins/_all-skins.min.css}"/>

  <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
  <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
  <!--[if lt IE 9]>
  <script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
  <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
  <![endif]-->
  <style type="text/css">
  	@media (max-height: 1199px){
  		#tsMenu{
  			max-height:1100px;
  			overflow: auto;
  		}
  	}
  	@media (max-height: 991px){
  		#tsMenu{
  			max-height:800px;
  			overflow: auto;
  		}
  	}
  	@media (max-height: 767px){
  		#tsMenu{
  			max-height:600px;
  			overflow: auto;
  		}
  	}
	#tsMenu::-webkit-scrollbar-track {
		-webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
		background-color: #F5F5F5;
	}
	
	#tsMenu::-webkit-scrollbar {
		width: 10px;
		background-color: #F5F5F5;
	}
	
	#tsMenu::-webkit-scrollbar-thumb {
		background-color: #1e282c;
		border: 2px solid #1e282c;
	}
</style>
</head>
<!-- ADD THE CLASS layout-boxed TO GET A BOXED LAYOUT -->
<body class="hold-transition skin-blue sidebar-mini">
<!-- Site wrapper -->
<div class="wrapper">

  <header class="main-header">
    <!-- Logo -->
    <a href="#" class="logo">
      <!-- mini logo for sidebar mini 50x50 pixels -->
      <span class="logo-mini"><b>TS</b></span>
      <!-- logo for regular state and mobile devices -->
      <span class="logo-lg"><b>远程会诊系统</b></span>
    </a>
    <!-- Header Navbar: style can be found in header.less -->
    <nav class="navbar navbar-static-top">
      <!-- Sidebar toggle button-->
      <a href="#" class="sidebar-toggle" data-toggle="offcanvas" role="button">
        <span class="sr-only">Toggle navigation</span>
      </a>

      <div class="navbar-custom-menu">
        <ul class="nav navbar-nav">
          <!-- User Account: style can be found in dropdown.less -->
          <li class="dropdown user user-menu">
            <a href="#" class="dropdown-toggle" data-toggle="dropdown">
              <img th:src="@{/static/assets/adminlte/img/user2-160x160.jpg}" class="user-image" alt="User Image">
              <span class="hidden-xs"><span id="username1"></span></span>
            </a>
            <ul class="dropdown-menu">
              <!-- User image -->
              <li class="user-header">
                <img th:src="@{/static/assets/adminlte/img/user2-160x160.jpg}" class="img-circle" alt="User Image">

                <p>
                  	<span id="username2"></span>
                </p>
              </li>
              <!-- Menu Footer-->
              <li class="user-footer">
                <div class="pull-right">
               	  <a id="btnResetPwd" class="btn btn-default btn-flat">重置密码</a>
                  <a th:href="@{/logout}" th:method="get"  class="btn btn-default btn-flat">退出</a>
                </div>
              </li>
            </ul>
          </li>
        </ul>
      </div>
    </nav>
  </header>

  <!-- =============================================== -->

  <!-- Left side column. contains the sidebar -->
  <aside class="main-sidebar">
    <!-- sidebar: style can be found in sidebar.less -->
    <section class="sidebar">
      <!-- Sidebar user panel -->
      <div class="user-panel">
        <div class="pull-left image">
          <img th:src="@{/static/assets/adminlte/img/user2-160x160.jpg}" class="img-circle" alt="User Image">
        </div>
        <div class="pull-left info">
          <p id="username3">管理员</p>
          <i class="fa fa-circle text-success"></i> Online
        </div>
      </div>
      <!-- menu start -->
      <div id="tsMenu"></div>
      <!-- menu end -->
    </section>
    <!-- /.sidebar -->
  </aside>

  <!-- =============================================== -->

  <!-- Content Wrapper. Contains page content -->
  <div class="content-wrapper">
    <iframe name="mainFrame" id="mainFrame" th:src="@{/page/business/main}" frameborder="false" scrolling="auto" style="border:none;" width="100%" height="auto" allowtransparency="true"></iframe>
  </section>

    <!-- Main content -->
  </div>
  <!-- /.content-wrapper -->
  
  <!-- 
  <footer class="main-footer">
    <div class="pull-right hidden-xs">
      <b>Version</b> 1.0
    </div>
    <strong>Copyright &copy; 2016-2017 <a href="http://almsaeedstudio.com">Almsaeed Studio</a>.</strong> All rights
    reserved.
  </footer>
   -->

  <!-- /.control-sidebar -->
  <!-- Add the sidebar's background. This div must be placed
       immediately after the control sidebar -->
  <div class="control-sidebar-bg"></div>
</div>
<!-- ./wrapper -->
<input type="hidden" id="ctx" th:value="${#httpServletRequest.getContextPath()}">
<script id="tpl-menu-list" type="text/html">
	<ul class="sidebar-menu">
	  <li class="header">MAIN NAVIGATION</li>
	  <li class="active treeview">
		<a href="{{ctx}}/page/business/main" target="mainFrame">
		  <i class="fa fa-home"></i> <span>首页</span>
		</a>
	  </li>
	{{each menuData as menu index}}
	  <li class="treeview">
		{{if menu.menu_type=='1'}}
			<a href="#">
		  		<i class="{{menu.menu_icon}}"></i><span>{{menu.menu_name}}</span>
		 		<span class="pull-right-container">
					<i class="fa fa-angle-left pull-right"></i>
		  		</span>
			</a>
		{{/if}}

		<ul class="treeview-menu">
			{{each menuData as cmenu index}}
				{{if cmenu.parent_id==menu.id}}
					<li><a href="{{ctx}}{{cmenu.menu_url}}" target="mainFrame"><i class="{{cmenu.menu_icon}}"></i><span>{{cmenu.menu_name}}</span></a></li>
				{{/if}}
			{{/each}}
		</ul>
	  </li>
	{{/each}}
	</ul>
</script>

<!-- jQuery 2.2.3 -->
<script th:src="@{/static/assets/jquery/jquery-2.2.3.min.js}"></script>
<!-- jquery-plugins -->
<script th:src="@{/static/assets/jquery-plugins/jquery.json.js}"></script>
<!-- Bootstrap 3.3.6 -->
<script th:src="@{/static/assets/bootstrap/js/bootstrap.min.js}"></script>
<!-- SlimScroll -->
<script th:src="@{/static/assets/slimScroll/jquery.slimscroll.min.js}"></script>
<!-- FastClick -->
<script th:src="@{/static/assets/fastclick/fastclick.js}"></script>
<!-- AdminLTE App -->
<script th:src="@{/static/assets/adminlte/js/app.min.js}"></script>
<!-- bootstrap-dialog-->
<script th:src="@{/static/assets/bootstrap-dialog/js/bootstrap-dialog.js}"></script>
<!-- bt-validate -->
<script th:src="@{/static/assets/bt-validate-master/bt-validate.js}"></script>
<script th:src="@{/static/assets/art-template-master/template.js}"></script>
<!-- 系统组件 -->
<!-- formCollect.js -->
<script th:src="@{/static/js/system/formCollect.js}"></script>
<!-- rest.js -->
<script th:src="@{/static/js/system/rest.js}"></script>
<!-- common.js -->
<script th:if="${projectModel=='dev'}" th:src="@{/static/js/system/common.js(v=${#dates.createNow().getTime()})}"></script>
<script th:if="${projectModel=='product'}" th:src="@{/static/js/system/common.js}"></script>
<!-- utils.js -->
<script th:if="${projectModel=='dev'}" th:src="@{/static/js/system/utils.js(v=${#dates.createNow().getTime()})}"></script>
<script th:if="${projectModel=='product'}" th:src="@{/static/js/system/utils.js}"></script>
<!-- index -->
<script th:src="@{/static/js/index.js}"></script>
</body>
</html>